package com.icarsaas.saas.tenant.system.repository;


import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import com.icarsaas.saas.component.base.MyBaseRepository;
import com.icarsaas.saas.component.base.MyBaseRepositoryImpl;
import com.icarsaas.saas.tenant.system.model.ActionLog;

public interface ActionLogRepository extends ActionLogRepositoryCustom, JpaRepository<ActionLog, Long> {

    /**
     * 根据模型和数据ID查询日志列表
     * @param model 模型（表名）
     * @param recordId 数据ID
     * @return 日志列表
     */
    public List<ActionLog> findByModelAndRecordId(String model, String recordId);
}

/* 自定义接口
 */
interface ActionLogRepositoryCustom extends MyBaseRepository<ActionLog, String> {

}
@Repository
class ActionLogRepositoryImpl extends MyBaseRepositoryImpl<ActionLog, String> implements ActionLogRepositoryCustom {
	
}